package com.yj.transport.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * Created by zhengguanyong on 2017/12/6.
 */
@Data
@ApiModel
public class TransportInfo { //运输信息表

    @ApiModelProperty(hidden = true)
    private Integer id;

    @ApiModelProperty(value = "业务id")
    private String main_id;

    @ApiModelProperty(value = "创建人(业务员)id'", hidden = true)
    private String user_id;

    @ApiModelProperty(value = "创建人手机号", hidden = true)
    private String user_phone;

    @ApiModelProperty(value = "运输方式(0:未设置,1:汽车,2:火车,3:船舶)")
    private int transport_type;

    @ApiModelProperty(value = "主搜索项运输车牌号(火车车号，船名，汽车牌照)")
    private String plate_number;

    @ApiModelProperty(value = "副搜索项运输车牌号(火车车号，船名，汽车牌照)", hidden = true)
    private String plate_number_all;

    @ApiModelProperty(value = "发货重量(吨)")
    private BigDecimal goods_weight;

    @ApiModelProperty(value = "总金额(元)")
    private BigDecimal amount;

    @ApiModelProperty(value = "发货地")
    private String start_place;

    @ApiModelProperty(value = "发货地经度 123.578394")
    private BigDecimal start_longitude;

    @ApiModelProperty(value = "发货地纬度 89.139483")
    private BigDecimal start_latitude;

    @ApiModelProperty(value = "收货地")
    private String end_place;

    @ApiModelProperty(value = "收货地经度 123.578394")
    private BigDecimal end_longitude;

    @ApiModelProperty(value = "收货地纬度 89.139483")
    private BigDecimal end_latitude;

    @ApiModelProperty(value = "发货时间 2017-12-08 11:10:03", example = "2017-12-08 11:10:03")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime deliver_time;

    @ApiModelProperty(value = "货权")
    private String ownership;

    @ApiModelProperty(value = "运输状态(0:运输中,1:待验收,2:验收完毕)", hidden = true)
    private int transport_status;

    @ApiModelProperty(value = "验收状态(0:未验收,1:验收通过,2:验收未通过,3:验收没收)", hidden = true)
    private int acceptance_status;

    @ApiModelProperty(value = "当前抵达地", hidden = true)
    private String arrive_place;

    @ApiModelProperty(value = "当前抵达时间 2017-12-08 11:10:03", example = "2017-12-08 11:10:03", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime arrive_time;

    @ApiModelProperty(value = "当前经度 123.578394", hidden = true)
    private BigDecimal longitude;

    @ApiModelProperty(value = "当前纬度 89.139483", hidden = true)
    private BigDecimal latitude;

    @ApiModelProperty(value = "当前地点是起始途中点(0:起点,1:途中,2:终点)", hidden = true)
    private int place_type;

    @ApiModelProperty(value = "轨迹更新时间", example = "2017-12-08 11:10:03", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime update_time;

    @ApiModelProperty(value = "创建时间", example = "2017-12-08 11:10:03", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime create_time;
}
